package com.navinfo.platform.examples.parquet

import com.navinfo.platform.qingqi.protocol.common.InterEventData
import com.navinfo.platform.qingqi.protocol.java.EventDataPb

abstract class PBEventData {

  var startGpsTime: Long
  var stopGpsTime: Long
  var event: String
  var duration: Long

  def this(ied: EventDataPb.EventData) {
    this
    this.duration=ied.getDuration
    this.event=ied.getEvent.toString
    this.startGpsTime=ied.getStartGpsTime
    this.stopGpsTime=ied.getStopGpsTime
  }
}
